#pragma onece
#include <vector>
using std::vector;
vector<int> decode(vector<int>& encoded, int first);